package com.cgw.game.entity;

/**
 * 自定义圆角柱子实体类。
 * 对柱子颜色值和对应的距离设置；以及总长度数据的设置。
 *
 */
public class RectEntity {
    //柱子的长短集合
    private int points[];
    //柱子每节对应的颜色集合
    private String color[];
    //柱子总长度
    private int Max;

    public RectEntity(int[] pointx, String[] color) {
        this.points = pointx;
        this.color = color;
        int count = 0;
        for (int i : pointx) {
            count = count + i;
        }
        Max = count;
    }

    public int[] getPoints() {
        return points;
    }

    public void setPoints(int[] points) {
        this.points = points;
    }

    public String[] getColor() {
        return color;
    }

    public void setColor(String[] color) {
        this.color = color;
    }

    public int getMax() {
        return Max;
    }

    public void setMax(int max) {
        Max = max;
    }
}